.edit-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #f5f7fa;
}

.custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  z-index: 100;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.navbar-left {
  display: flex;
  align-items: center;
}

.back-icon {
  font-family: "iconfont";
  font-size: 18px;
  color: #333;
}

.navbar-title {
  font-size: 17px;
  font-weight: 500;
  color: #333;
}

.navbar-right {
  display: flex;
  align-items: center;
}

.save-text {
  font-size: 15px;
  color: #2B7FF3;
}

.form-container {
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
}

.form-section {
  background-color: #fff;
  margin: 10px;
  border-radius: 8px;
  padding: 0 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 15px;
  color: #666;
  padding: 15px 0 5px;
}

.form-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  border-bottom: 1px solid #f5f5f5;
  
  &:last-child {
    border-bottom: none;
  }
  
  &.avatar-item {
    padding: 10px 0;
  }
}

.item-label {
  font-size: 15px;
  color: #333;
  flex-shrink: 0;
  width: 100px;
}

.item-input {
  flex: 1;
  height: 40px;
  text-align: right;
  font-size: 15px;
  color: #333;
}

.item-picker {
  flex: 1;
}

.picker-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 15px;
  color: #333;
}

.placeholder-text {
  color: #999;
}

.arrow-icon {
  margin-left: 5px;
  font-size: 18px;
  color: #999;
  transform: rotate(90deg);
}

.avatar-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 35px;
  overflow: hidden;
  position: relative;
}

.avatar-image {
  width: 100%;
  height: 100%;
}

.avatar-upload-mask {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-icon {
  color: #fff;
  font-size: 16px;
}

.item-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 15px;
  color: #333;
}

.item-textarea {
  width: 100%;
  height: 100px;
  padding: 10px 0;
  font-size: 15px;
  color: #333;
}

.expand-button {
  margin: 10px;
  height: 40px;
  background-color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #2B7FF3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  
  &.expanded {
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
  }
}

.tag-header {
  align-items: flex-start;
  padding: 12px 0;
  min-height: auto;
  
  .item-right {
    max-width: 70%;
    display: flex;
    align-items: center;
  }
}

.tag-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  margin-right: 5px;
  max-width: 100%;
  min-width: 0; /* 确保容器可以收缩 */
  overflow: hidden; /* 防止内容溢出 */
}

.form-section .tag-item {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  margin-right: 5px;
  margin-bottom: 5px;
  white-space: nowrap;
  display: inline-block;
  flex-shrink: 0; /* 防止标签被压缩 */
  color: #fff; /* 默认白色文字 */
  font-weight: 500; /* 稍微加粗以提高可读性 */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* 添加文字阴影提高对比度 */
}

/* 根据图片中的效果，为不同类型的标签设置不同的颜色 */
.form-section .tag-like {
  background-color: #ffebee;
  color: #f44336;
}

.form-section .tag-notlike {
  background-color: #fff8e1;
  color: #ff9800;
}

.form-section .tag-eat {
  background-color: #e8f5e9;
  color: #4caf50;
}

.form-section .tag-habit {
  background-color: #e3f2fd;
  color: #2196f3;
}

.form-section .tag-skill {
  background-color: #f3e5f5;
  color: #9c27b0;
}

.form-section .type-tag {
  padding: 6rpx 20rpx;
  border-radius: 6rpx;
  font-size: 28rpx;
  background-color: #F0F7FF;
  color: #007AFF;
}

.tag-more {
  background-color: #e6f2ff;
  color: #2B7FF3;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.floating-btn {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background-color: #2B7FF3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(43, 127, 243, 0.5);
  z-index: 99;
}

.btn-icon {
  color: #fff;
  font-size: 24px;
}

.save-btn {
  font-size: 15px;
  color: #2B7FF3;
  padding: 5px 10px;
}